<!--conf
<sample>
              <product version="1.4" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Columns' hiding using header menu</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	
</head>
<style>
   	.dhx_header_cmenu{
			background-color:#ffffff;
			border:2px outset silver;
			z-index:2;
		}
	.dhx_header_cmenu_item{
		white-space:nowrap;
	}		

</style>
<body>
	<h1>Columns' hiding using header menu</h1>
	<p>Try to right click on any header. And you will see the menu where columns can be hidden by checking checkboxes.</p>
	<table width="600px">
		<tr>
			<td>
				<div id="gridbox" style="width:100%;height:270px;background-color:white;"></div>
			</td>
		</tr>
		
	</table>


<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
	mygrid.setInitWidths("50,150,100,80,80,80,80,200")
	mygrid.setColAlign("right,left,left,right,center,left,center,center")
	mygrid.setColTypes("dyn,edtxt,ed,price,ch,co,ra,ro");
	mygrid.init();
	mygrid.setSkin("dhx_skyblue")
	mygrid.enableHeaderMenu();
	mygrid.setColumnHidden(2,true);
	mygrid.loadXML("../common/grid_16_rows_columns_manipulations.xml");
</script>

</body>
</html>
